/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.evaluation;

import com.xingkeduo.dto.transter.shop.StoreRemoteDto;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

@Data
public class Store {

    private String name;
    private String img_url;

    public  void covert(StoreRemoteDto byStoreId) {
        if(byStoreId!=null){
            this.name=byStoreId.getStoreName();
            this.img_url= StringUtils.isNotEmpty(byStoreId.getShopsImg())?byStoreId.getShopsImg():"";
        }
    }
}